package com.it.entity;

import java.util.Date;

/**
 * @author 羡羡
 */
public class Log {
    public int id;
    public int usid;
    public Date logtime;
    public String context;
    public int location;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUsid() {
        return usid;
    }

    public void setUsid(int usid) {
        this.usid = usid;
    }

    public Date getLogtime() {
        return logtime;
    }

    public void setLogtime(Date logtime) {
        this.logtime = logtime;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public int getLocation() {
        return location;
    }

    public void setLocation(int location) {
        this.location = location;
    }

    public Log() {
    }

    public Log(int usid, Date logtime, String context, int location) {
        this.usid = usid;
        this.logtime = logtime;
        this.context = context;
        this.location = location;
    }

    public Log(int id, int usid, Date logtime, String context, int location) {
        this.id = id;
        this.usid = usid;
        this.logtime = logtime;
        this.context = context;
        this.location = location;
    }

    @Override
    public String toString() {
        return "\nLog{" +
                "id=" + id +
                ", usid=" + usid +
                ", logtime=" + logtime +
                ", context='" + context + '\'' +
                ", location=" + location +
                '}';
    }
}
